package com.zuijin.vue2blog.service;

import com.zuijin.vue2blog.dto.UserComParam;
import com.zuijin.vue2blog.entity.UserCom;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.stereotype.Service;


public interface UserComService extends IService<UserCom> {
    /**
     * 注册功能
     *
     * @param userComParam 查询用户参数
     * @return 注册的新用户对象
     */
    UserCom register(UserComParam userComParam);

    /**
     * 登录功能
     *
     * @param userComParam 查询用户参数
     * @return JWT 生成的 token
     */
    String login(UserComParam userComParam);
}
